/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
  background-color: #fff9fb;
  color: #555;
  line-height: 1.7;
  padding: 0;
  margin: 0;
}

/* 导航菜单 - 粉色渐变 */
#navbar {
  background: linear-gradient(135deg, #ff9a9e, #fad0c4);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 15px rgba(255, 105, 140, 0.2);
}

#navbar ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 1.2rem 0;
  margin: 0;
}

#navbar li {
  margin: 0 1.2rem;
}

#navbar a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

#navbar a:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 首页头部 - 粉色渐变背景 */
#header {
  background: linear-gradient(135deg, #f6d7e7, #f8c3d4);
  color: #5a3d5a;
  padding: 4rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 10px;
  position: relative;
  overflow: hidden;
}



#header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="25" cy="25" r="4" fill="rgba(255,255,255,0.3)"/><circle cx="75" cy="75" r="4" fill="rgba(255,255,255,0.3)"/><circle cx="75" cy="25" r="3" fill="rgba(255,255,255,0.3)"/><circle cx="25" cy="75" r="3" fill="rgba(255,255,255,0.3)"/></svg>');
  opacity: 0.3;
}

.profile {
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.profile-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid white;
  box-shadow: 0 8px 25px rgba(233, 150, 180, 0.4);
  margin-bottom: 1.8rem;
  transition: all 0.5s ease;
}

.profile-img:hover {
  transform: rotate(5deg) scale(1.05);
}

.profile h1 {
  font-size: 2.8rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
  color: #5a3d5a;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.profile p {
  font-size: 1.3rem;
  color: #8a6a8a;
  font-weight: 400;
}

.contact-info {
  background: rgba(255, 255, 255, 0.6);
  padding: 1.8rem 2.5rem;
  border-radius: 15px;
  margin-top: 2.5rem;
  backdrop-filter: blur(8px);
  max-width: 500px;
  width: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 1;
}

.contact-info p {
  margin: 0.8rem 0;
  font-size: 1.1rem;
  color: #6a4a6a;
}

.contact-info a {
  color: #d35d8a;
  text-decoration: none;
  border-bottom: 1px dashed #d35d8a;
  transition: all 0.3s ease;
  font-weight: 500;
}

.contact-info a:hover {
  color: #b84b72;
  border-bottom-color: #b84b72;
}

/* 内容区域 */
.section {
  padding: 3.5rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.section:nth-child(even) {
  background-color: white;
  box-shadow: 0 5px 25px rgba(233, 180, 200, 0.1);
}

.section h2 {
  font-size: 2rem;
  color: #d35d8a;
  margin-bottom: 2rem;
  padding-bottom: 0.8rem;
  border-bottom: 3px solid #f8c3d4;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.section h2:hover {
  color: #b84b72;
  transform: translateX(5px);
}

.section h2::after {
  content: "❀";
  margin-left: 10px;
  opacity: 0.7;
}

.content {
  padding: 1.5rem;
  animation: fadeIn 0.6s ease;
  background-color: rgba(255, 240, 245, 0.4);
  border-radius: 12px;
  margin-top: 1rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 教育背景 */
#education .content p {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
  color: #6a4a6a;
}

#education .content p::before {
  content: "🎓";
  position: absolute;
  left: -5px;
}

/* 技能专长 */
#skills ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
  list-style: none;
}

#skills li {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 5px solid #f8c3d4;
  transition: all 0.4s ease;
  box-shadow: 0 3px 10px rgba(233, 150, 180, 0.1);
  color: #6a4a6a;
}

#skills li:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(233, 150, 180, 0.15);
  border-left-color: #d35d8a;
}

/* 项目经验 */
.project {
  margin-bottom: 2.5rem;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(233, 150, 180, 0.1);
  border: 1px solid #f0e0e5;
  transition: all 0.3s ease;
}

.project:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(233, 150, 180, 0.15);
}

.project h3 {
  color: #b84b72;
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
}

.project h3::before {
  content: "🌸";
  margin-right: 10px;
  font-size: 1.1rem;
}

.project p {
  margin-bottom: 1rem;
  color: #6a4a6a;
  line-height: 1.8;
}

.project strong {
  color: #d35d8a;
  font-weight: 500;
}

/* 获奖情况 */
#awards ul {
  list-style: none;
}

#awards li {
  padding: 1rem 0 1rem 2.5rem;
  border-bottom: 1px solid #f0e0e5;
  display: flex;
  align-items: center;
  position: relative;
  color: #6a4a6a;
}

#awards li::before {
  content: "🏆";
  position: absolute;
  left: 0;
  font-size: 1.3rem;
  color: #f8c3d4;
}

/* 自我评价 */
#about .content {
  font-style: italic;
  line-height: 1.9;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  border-left: 5px solid #f8c3d4;
  color: #6a4a6a;
  position: relative;
  overflow: hidden;
}

#about .content::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 5rem;
  color: rgba(248, 195, 212, 0.2);
  font-family: serif;
  line-height: 1;
}

/* 页脚 */
footer {
  background: linear-gradient(135deg, #ff9a9e, #fad0c4);
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
  font-size: 1.1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
  #navbar ul {
    flex-wrap: wrap;
    padding: 0.8rem 0;
  }

  #navbar li {
    margin: 0.4rem;
  }

  #navbar a {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }

  .section {
    padding: 2.5rem 1.2rem;
  }

  #skills ul {
    grid-template-columns: 1fr;
  }

  #header {
    padding: 2.5rem 1.2rem;
  }

  .profile-img {
    width: 140px;
    height: 140px;
  }

  .profile h1 {
    font-size: 2.2rem;
  }

  .contact-info {
    padding: 1.5rem;
  }
}